package org.seckill.dto;

/**
 * 暴露秒杀地址DTO
 * Created by whl on 2017/6/29.
 */
public class Exposer {
    //是否开启秒杀
    private boolean exprosed;
    //一种加密机制
    private String md5;
    //id
    private long seckillId;
    //系统当前时间（毫秒）
    private long now;

    private long start;

    private long end;

    public Exposer(boolean exprosed, String md5, long seckillId) {
        this.exprosed = exprosed;
        this.md5 = md5;
        this.seckillId = seckillId;
    }

    public Exposer(boolean exprosed, long seckillId,long now, long start, long end) {
        this.exprosed = exprosed;
        this.seckillId = seckillId;
        this.now = now;
        this.start = start;
        this.end = end;
    }

    public Exposer(boolean exprosed, long seckillId) {
        this.exprosed = exprosed;
        this.seckillId = seckillId;
    }

    public boolean isExprosed() {
        return exprosed;
    }

    public void setExprosed(boolean exprosed) {
        this.exprosed = exprosed;
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public long getSeckillId() {
        return seckillId;
    }

    public void setSeckillId(long seckillId) {
        this.seckillId = seckillId;
    }

    public long getNow() {
        return now;
    }

    public void setNow(long now) {
        this.now = now;
    }

    public long getStart() {
        return start;
    }

    public void setStart(long start) {
        this.start = start;
    }

    public long getEnd() {
        return end;
    }

    public void setEnd(long end) {
        this.end = end;
    }
}
